from sqlalchemy import Column, Integer, String, \
    Text, ForeignKey, SmallInteger
from sqlalchemy.orm import relationship
from datetime import datetime


from app.models import Base
from app import create_session



class Auth(Base):
    id = Column(Integer, primary_key=True)  # 编号
    name = Column(String(100), unique=True)
    url = Column(String(255), unique=True)   # 可访问的url